package com.home.moon.util;

import lombok.Data;

/**
 * @author auto
 */
@Data
public class UnionResult {
    private String message;
    private int code;
    private Object data;
    public static UnionResult OK(Object data){
        return new UnionResult("请求成功",200,data);
    }

    public UnionResult() {

    }

    public UnionResult(String message, int code, Object data) {
        this.message = message;
        this.code = code;
        this.data = data;
    }
}
